<%doc>
	# escaping see http://www.masonbook.com/book/chapter-2.mhtml (Esapcing subsutution). 
</%doc>

<%attr>
	sHead => "show article"
</%attr>

<%init>
	my $article = $m->comp($m->notes('app_root_path') . "/dao/article_dao.mi:findById", id => $m->notes('url_id'));
	$m->comp($m->notes('app_root_path') . '/view/show.mi', 
		entity => $article, entity_name => 'article', 
		field_names => ['title', 'created_at', 'doctext'],
		field_titles => {'title' => 'title', 'created_at' => 'last edited', 'doctext' => ''},
		unescaped_fields => {'doctext' => 1});
</%init>
